<?php
/**
 * @Author: rocky
 * Date: 2019/12/11
 * Time: 14:30
 */


namespace app\shop\resource;


use app\common\resource\BaseResource;
use app\shop\model\ShopGoodsSpec;

class SeckillActivityResoure extends BaseResource
{
    public function toArray($data)
    {

        return [
            'seckill_id' => $data['id'],
            'activity_time' => $data['activity_time'],
            'good' => SeckillGoodResoure::collection($data['good'])
        ];
    }
}